package Models

import "time"

/**
 * Created by Goland
 * User: wkk alisleepy@hotmail.com
 * Time: 2023/12/19 - 00:21
 * Desc: <预入职pre_staff表>
 */

// PreStaffTableName 表名
const PreStaffTableName string = "ali_pre_staff"

// PreStaff 预入职员工表
type PreStaff struct {
	ID           int64       `json:"id" gorm:"id"`                       // 主键ID
	Name         string      `json:"name" gorm:"name"`                   // 姓名
	IdCard       string      `json:"id_card" gorm:"id_card"`             // 身份证号
	Mobile       string      `json:"mobile" gorm:"mobile"`               // 手机号
	JoinDate     string      `json:"join_date" gorm:"join_date"`         // 入职日期
	DepartmentId int64       `json:"department_id" gorm:"department_id"` // 部门ID
	Status       string      `json:"status" gorm:"status"`               // 状态：待审核、审核通过、审核驳回、未入职、已入职
	CreatedAt    time.Time   `json:"created_at" gorm:"created_at"`       // 创建时间
	UpdatedAt    time.Time   `json:"updated_at" gorm:"updated_at"`       // 更新时间
	DeletedAt    time.Time   `json:"deleted_at" gorm:"deleted_at"`       // 删除时间
	Department   *Department `gorm:"FOREIGNKEY:Id; ASSOCIATION_FOREIGNKEY:DepartmentId" json:"department"`
}
